let BH = (() => {
    function BH () {
        print('开始初始化函数')
    }

    BH.prototype.__show_ui__ = (path) => {

        if (path.indexOf('.js') == -1) path += '.js';

        let xml_fun = require('../res/layout/'+path)
        ui.layout(xml_fun.xml)
        xml_fun.fun()
    }

    return BH
})()

module.exports = BH